﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace XRM.Security.DataAccess.Models
{
    [Table("SertificateFstk")]
    public class SertificateFstk
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int SertificateFstkId { get; set; }
        
        [Required]
        [MaxLength(250)]
        public string Name { get; set; }

        public int SkziKindId { get; set; }

        [ForeignKey("SkziKindId")]
        public virtual SkziKind SkziKind { get; set; }
    } 
}
